<?php
class Phongtraokhoa extends AppModel {
	var $name = 'Phongtraokhoa';
	var $validate = array(
		'khoa_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'cap_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'loaiphongtrao_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Khoa' => array(
			'className' => 'Khoa',
			'foreignKey' => 'khoa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Cap' => array(
			'className' => 'Cap',
			'foreignKey' => 'cap_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Loaiphongtrao' => array(
			'className' => 'Loaiphongtrao',
			'foreignKey' => 'loaiphongtrao_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Thanhtichkhoacb' => array(
			'className' => 'Thanhtichkhoacb',
			'foreignKey' => 'phongtraokhoa_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Thanhtichkhoasv' => array(
			'className' => 'Thanhtichkhoasv',
			'foreignKey' => 'phongtraokhoa_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
